program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  a, b, v, e, i: integer;
  mass: array of integer;

begin
  read (v, e);
  setlength (mass, v);
  for i:= 0 to v-1 do
    mass[i]:= 0;
  for i:= 0 to e-1 do
  begin
    read (a, b);
    inc (mass[a-1]);
    inc (mass[b-1]);
  end;
  for i:= 0 to v-1 do
    write (mass[i], ' ');
end.
